package com.baseweb.webadmin.core.model.bvo;

import com.baseweb.webadmin.core.model.pojo.ByUserBizAuth;
import com.baseweb.webadmin.core.model.pojo.User;
import org.joda.time.DateTime;

import java.util.List;

public class ByUserBizAuthBvo extends ByUserBizAuth{

    private Integer id;
    private String userCnName;
    private String userMobile;
    private String authLevelName;
    private String authTypeName;
    private String statusName;
    private String dailishang;
    private String province;
    private String city;
    private String district;
    private String imgUrl;
    private String name;
    private Integer authType;
    private Integer findFlag = 1;//1查询分页，2查询总条数

    private Integer status;
    private String createTimeName;
    private DateTime createTime;

    private DateTime updateTime;

    private String descn;

    private UserInfoBvo user;

    private String authListStr;


    public static ByUserBizAuthBvo copyFrom(ByUserBizAuth byUserBizAuth, UserInfoBvo user, String authStr) {
        ByUserBizAuthBvo bvo = new ByUserBizAuthBvo();
        bvo.setId(byUserBizAuth.getId());
        bvo.setUserId(byUserBizAuth.getUserId());
        bvo.setImgUrl(byUserBizAuth.getImgUrl());
        bvo.setName(byUserBizAuth.getName());
        bvo.setAuthType(byUserBizAuth.getAuthType());
        bvo.setStatus(byUserBizAuth.getStatus());
        bvo.setCreateTime(byUserBizAuth.getCreateTime());
        bvo.setUpdateTime(byUserBizAuth.getUpdateTime());
        bvo.setDescn(byUserBizAuth.getDescn());
        bvo.setUser(user);
        bvo.setAuthListStr(authStr);
        return bvo;
    }

    public String getAuthListStr() {
        return authListStr;
    }

    public void setAuthListStr(String authListStr) {
        this.authListStr = authListStr;
    }

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAuthType() {
        return authType;
    }

    public void setAuthType(Integer authType) {
        this.authType = authType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public DateTime getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(DateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public DateTime getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(DateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getDescn() {
        return descn;
    }

    public void setDescn(String descn) {
        this.descn = descn;
    }

    public UserInfoBvo getUser() {
        return user;
    }

    public void setUser(UserInfoBvo user) {
        this.user = user;
    }

    public String getUserCnName() {
        return userCnName;
    }

    public void setUserCnName(String userCnName) {
        this.userCnName = userCnName;
    }

    public String getUserMobile() {
        return userMobile;
    }

    public void setUserMobile(String userMobile) {
        this.userMobile = userMobile;
    }

    public String getAuthLevelName() {
        return authLevelName;
    }

    public void setAuthLevelName(String authLevelName) {
        this.authLevelName = authLevelName;
    }

    public String getAuthTypeName() {
        return authTypeName;
    }

    public void setAuthTypeName(String authTypeName) {
        this.authTypeName = authTypeName;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getDailishang() {
        return dailishang;
    }

    public void setDailishang(String dailishang) {
        this.dailishang = dailishang;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getCreateTimeName() {
        return createTimeName;
    }

    public void setCreateTimeName(String createTimeName) {
        this.createTimeName = createTimeName;
    }

    public Integer getFindFlag() {
        return findFlag;
    }

    public void setFindFlag(Integer findFlag) {
        this.findFlag = findFlag;
    }
}
